package it.cqupt.dao.system;

import it.cqupt.domain.system.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleDao {
    List<Role> findAll();
    Role findById(String id);
    int delete(Role role);
    int save(Role role);
    int update(Role role);

    int saveRoleModule(@Param("roleId") String roleId,@Param("moduleId") String moduleId);

    int deleteRoleModule(String roleId);

    List<Role> findAllUserRole(String userId);
}
